"""
了解
"""

import time
from urllib.request import urlretrieve

import requests
from selenium import webdriver
from selenium.webdriver.common.by import By

driver=webdriver.Edge()
driver.maximize_window()
driver.implicitly_wait(5)
driver.get("https://www.baidu.com/")
driver.find_element(By.CSS_SELECTOR,".soutu-btn").click()
time.sleep(3)

driver.find_element(By.CSS_SELECTOR,"#form > div > div.soutu-state-normal.soutu-paste > div.upload-wrap > input").send_keys(r"E:\Desktop\1111.jpg")

ele_img=driver.find_element(By.CSS_SELECTOR,"div[class='graph-product graph-container'] div:nth-child(1) div:nth-child(1) div:nth-child(1) span:nth-child(1)>img")



# requests
# http.client

# 4 关闭浏览器驱动对象
time.sleep(3)  #代码暂停10s中
driver.quit()





